Page({
  data: {
    mark:'丢卡咩',
    speed: 3,
    during:10,
    marqueeWidth:0
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    console.log(this.data.mark)
    var consumeTime = 10
    if(this.data.speed == 1){
      consumeTime = this.data.mark.length * 2
    }else if(this.data.speed == 2){
      consumeTime = this.data.mark.length
    }else if(this.data.speed == 3){
      consumeTime = this.data.mark.length / 2
    }
    this.setData({
      mark: ' '+this.data.mark,
      during: consumeTime
    })
  },
  onBack:function(){
    wx.navigateTo({
      url: "/pages/other/other"
  });
  }

})